{layout name="/base"}
  <div id="page-wrapper">
    <div class="row">
      <div class="col-lg-12">
        <h1>营地管理 <small>营地星级</small></h1>
        <ol class="breadcrumb">
          <li><a href="/index"><i class="fa fa-dashboard"></i> 管理首页</a></li>
          <li class="active"><i class="fa fa-table"></i> 营地星级管理</li>
        </ol>
        <div class="alert alert-success alert-dismissable">
          <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
          请设置营地星级信息
        </div>
      </div>
    </div>
    <!-- /.row -->
    <div class="row">
      <!-- 选项卡start -->
      <div class="bs-example">
      	<!-- 选项卡标题start -->
        <ul class="nav nav-tabs" style="margin-bottom:15px;">
          <li>
            <a href="/types">营地类型</a>
          </li>
          <li class="active">
            <a href="/grades">营地星级</a>
          </li>
        </ul>
        <!-- 选项卡标题end -->
        <!-- 选项卡内容start -->
        <div id="myTabContent" class="tab-content">
          <!-- 选项卡内容2星级start -->
          <div id="two" class="tab-pane fade active in">
            <!-- 基本信息start -->
            <div class="col-lg-12">
              <div class="panel panel-default">
                <div class="panel-heading ">
                  <h3 class="panel-title">
                    营地星级
                  </h3>
                </div>
                <div class="panel-body">
                  <div class="btn-group mybtn">
                    <a href="/grades/create" class="btn btn-primary" type="submit">增加</a>
                  </div>
                  <!-- 星级表start -->
                  <div class="table-responsive">
                    <table class="table table-bordered table-hover table-striped tablesorter">
                      <thead>
                        <tr>
                          <th><div class="checker"><span><input type="checkbox" name=""></span></div></th>
                          <th>名称</th>
                          <th>描述</th>
                          <th>操作 </th>
                        </tr>
                      </thead>
                      <tbody>
                      <form id='delete' class="form-horizontal" role="form"  method="post">
                      <input type="hidden" id='method' name="_method" value="DELETE">
                      {volist name='list' id='vo'}
                        <tr>
                          <td><div class="checker"><span><input type="checkbox" name="ids[]" value="{$vo.id}"></span></div></td>
                          <td>{$vo.name}</td>
                          <td>{$vo.profiles}</td>
                          <td><a href="/grades/{$vo.id}/edit">编辑</a></td>
                        </tr>
                      {/volist} 
                      </form> 
                      </tbody>
                    </table>
                  </div>
                  <!-- 星级表end -->
                </div>
              </div>
            </div>
            <!-- 基本信息end -->
          </div>
          <!-- 选项卡内容2星级end -->
        </div>
        <!-- 选项卡内容end -->
      </div>
      <!-- 选项卡end -->
    </div>
  </div><!-- /#page-wrapper -->
